<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {
    
    // 在这里做登录验证
    public function _initialize(){
        if(empty(session('admin_id'))){
            $this->redirect('Admin/Login/index');
        }
    }
}